"""练习8-7"""


def make_album(singer, album_name, song_count=None):
    album = {
        "singer": singer,
        "album_name": album_name
    }

    if song_count is not None:
        album["song_count"] = song_count

    return album


# 创建三个不同的专辑，并打印返回值
print(make_album("王力宏", "嘿嘿嘿"))
print(make_album("张学友", "嘿嘿嘿"))
print(make_album("刘德华", "嘿嘿嘿"))

# 创建专辑，指定歌曲数
print(make_album("郭富城", "嘿嘿嘿", 20))
